//
//  HotelsViewController.m
//  PeopleStreet
//
//  Created by 刘建峰 on 16/7/1.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "HotelsViewController.h"

@interface HotelsViewController ()
@property (weak, nonatomic) IBOutlet UIScrollView *scroView;
@property (weak, nonatomic) IBOutlet UILabel *scoreLabel;

@end

@implementation HotelsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initViewLayout];
    // Do any additional setup after loading the view.
}

- (void)initViewLayout{

    [self adaptiveViewLayout:self.view];
    [self adaptiveViewLayout:self.scroView];
    _scroView.contentSize = flexibleSize(CGSizeMake(0, 569), NO);
    
    
    CommitStarsView * startView = [[CommitStarsView alloc]initWithFrame:flexibleFrame(CGRectMake(28, 535, 65, 15), NO) Stars:5];
    [_scroView insertSubview:startView belowSubview:_scoreLabel];
}

- (IBAction)back:(id)sender {
    [self.navigationController  popViewControllerAnimated:YES];
}
#pragma mark  ==== 酒店详情
- (IBAction)hoteldetail:(id)sender {
    UIStoryboard *secondStroyBoard=[UIStoryboard storyboardWithName:@"HomeStoryboard" bundle:nil];
    UIViewController *page = [secondStroyBoard instantiateViewControllerWithIdentifier:@"HotelDetails"];
    [self.navigationController   pushViewController:page animated:YES];
}
#pragma mark  ==== 服务热线
- (IBAction)callHandel:(id)sender {
}
#pragma mark  ==== 酒店预订
- (IBAction)hotelBook:(id)sender {
    UIStoryboard *secondStroyBoard=[UIStoryboard storyboardWithName:@"HomeStoryboard" bundle:nil];
    UIViewController *page = [secondStroyBoard instantiateViewControllerWithIdentifier:@"HotelReservation"];
    [self.navigationController   pushViewController:page animated:YES];
}
#pragma mark  ==== 导航
- (IBAction)map:(id)sender {
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
